<?php
    include "../../db/dbConnect.php";
include 'math.php';
include "helper.php";
if($_SERVER['REQUEST_METHOD']=="GET"){
	$iduser=escape($_GET['iduser']);
	$idquest=escape($_GET['idquest']);
//update prefs	
	$u_list=select_user2pref($iduser, $idquest);
	echo mysql_error();
	while($row=mysql_fetch_array($u_list)){
		echo '  updating...  ';
		echo $row['iduser'];
		update_pref($iduser,$row['iduser']);
	}
// process stableMatching();
echo 'processing...';
	stableMatching();
echo '<br/>finish!';
	
	
}//end
?>